package com.zsh.admin.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.relational.core.mapping.Table;

/**
 * @author zsh
 * @Description
 * @create 2022-02-25 15:37
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("user")
public class User {
    //所有属性都应该在数据库中
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String password;

//    以下是数据库字段
    private Long id;
    private String name;
    private Integer age;
    private String email;
}
